package cn.i7baozh.service.impl;

import cn.i7baozh.dto.HiPropertiesDTO;
import cn.i7baozh.service.HiService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author zhangbaoqi532
 * @date 2025/1/13
 */
//@Component // 这里不需要Component注解
public class CustomHiService implements HiService {

    @Autowired
    private HiPropertiesDTO hiPropertiesDTO;

    @Override
    public void printProperties() {
        System.out.println("演示需要在配置文件里加入配置的starter");
        System.out.println("获取到的配置为: " + hiPropertiesDTO);
    }
}
